package com.hjqjl.androidutils;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.hjqjl.androidutils.databinding.ActivityMainBinding;
import com.hjqjl.androidutils.dialog.DialogLoading;
import com.hjqjl.androidutils.utils.ToastUtil;

public class MainActivity extends AppCompatActivity {

    private ActivityMainBinding binding;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityMainBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        binding.btn1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ToastUtil.showC(MainActivity.this, "demo");
            }
        });

        binding.btn2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                DialogLoading.showLoading(MainActivity.this);
            }
        });
    }
}